﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketApp.DataService
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TicketApp.DataService.TicketsModelContainer ctx = new TicketsModelContainer();
            var allUsers = ctx.AllUsers.Where(user => user is Organizer);
            string country= ((Organizer)allUsers.FirstOrDefault()).Address.Country;
            var count = allUsers.Count();
            Response.Write(count);

        }
    }
}